﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LogisticDatabase.Models;


namespace LogisticDatabase
{
    public interface IDataAccess<Entity>
    {
        /*List<Circulation> getCirculations();
        List<Productinstance> getProductinstances();
        List<Factory> getFactorys();
        List<Component> getComponents();
        List<Material> getMaterials();
        List<City> getCitites();
        List<Factory> getFactoryById();
        void updateCity(City city);
        void updateFactory(Factory factory);
        void addCity(City city);*/

        List<Entity> listAll();
        void edit(Entity editingEntity);
        void add(Entity addingEntity);
        void delete(Entity deletingEntity);
       // Entity getById(int id);
    }
}
